package cn.wenlihelp.mapper;

import cn.wenlihelp.bean.Account;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity cn.wenlihelp.bean.Account
 */
public interface AccountMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);

    void deleteByIds(Integer[] ids);

    List<Account> findAll(Account account);

    int addRoleMapping(@Param("accountId")Integer accountId,@Param("roleIds")Integer[] roleIds);

    int deleteAccountRoleMapping(@Param("accountId")Integer accountId);

    Account findByUserNameAndPassword(@Param("userName")String userName,@Param("userPassword") String userPassword);
}
